<%@page import="dto.attendenceDTO"%>
<%@page import="vo.employeesVO"%>
<%@page import="dto.employeesDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href = '${pageContext.request.contextPath }/css/main.css'>
<script type="text/javascript" src="${pageContext.request.contextPath }/js/attendence.js"></script>
</head>
<body>
<% 	
	String myinfo_sessionMid = (String)session.getAttribute("sessionMid");

	employeesDTO myinfo_edto = new employeesDTO();
	employeesVO myinfo_evo;
	
	myinfo_evo = myinfo_edto.getInfo(myinfo_sessionMid);
	
	attendenceDTO myinfo_adto = new attendenceDTO();
	
	if(myinfo_sessionMid != null){ 
%>
	
<div class="myinfo">
	<div align="center" style="margin-top: 10px;"><img alt="프로질 사진" src="../images/profile.png"> </div>
	<p>
	<div align="left"><font style="font-weight: bold;"><%=myinfo_evo.getE_name()%> [<%=myinfo_evo.getE_position()%>]</font></div>
	<div align="right"><font style="font-size: 10px">[<%=myinfo_edto.getTeamName(myinfo_evo.getD_code())%>] </font></div>
	<div align="left"><font style="font-weight: bold;">출근상태</font> [<%=myinfo_adto.attendence_state(myinfo_evo) %>]</div>
	<div align="left"><font style="font-weight: bold;">출근시간</font> [<%=myinfo_adto.sTime(myinfo_evo) %>]</div>
	<div id ='mymodify'>
	<div style="margin-top: 10px;"><a href="#" onclick= "myinfo()"><img src = '../images/icon_myinfo.png'></a></div>
	<div style="margin-top: 10px;"><a href="#" onclick= "modify_myinfo()"><img src = '../images/icon_myinfo_modify.png'></a></div>	
	 </div>
</div>
<%}else{ %>
	
<%} %>
</body>
</html>